<?
	include_once('inc/functions.php');
	require_once('inc/authentication.php');
?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
	<? include('inc/header.php'); ?>
	<? include('inc/nav.php'); ?>
    
	<h1>Welcome to my site</h1>
    <? if(IsLoggedIn()){ ?>
    	<h2>Welcome <?=GetUserName()?></h2>
    <? }else{ ?>
    	<h2>You need to <a href="login.php" >Log In</a></h2>
    <? } ?>
    
    <? include('inc/footer.php'); ?>
</body>
</html>
